/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) RF5_IEK 1.20.07 09-26-02 (swat-c12)" */
/*
 *  ======== celljpegenc.h ========
 */

#ifndef CELLJPEGENCATE_
#define CELLJPEGENCATE_

#include <icell.h>
#include "ijpegenc.h"

#ifdef __cplusplus
extern "C" {
#endif

// v-table for this cell 
extern ICELL_Fxns JPEGENC_CELLFXNS;

// v-table for this cell's algorithm
extern far IJPEGENC_Fxns JPEGENC_IJPEGENC;

/*
 *  ======== JPEGDEC_cellClose ========
 *
 */
extern Bool JPEGENC_cellClose( ICELL_Handle handle );

/*
 *  ======== JPEGENC_cellExecute ========
 *  Function used to execute the algorithm corresponding to the cell 
 */
extern Bool JPEGENC_cellExecute( ICELL_Handle handle, Arg arg );

/*
 *  ======== JPEGDEC_cellOpen ========
 *
 */
extern Bool JPEGENC_cellOpen( ICELL_Handle handle );



extern Int JPEGENC_cellControl(ICELL_Handle handle, IALG_Cmd cmd, IALG_Status *status);

/* 
 * ======== JPEGENC cell environment ========
 */
typedef struct JPEGENC_Env {
    Char * butterflyIntBuf;
    Char * procIntBuf;
    Char * intYBuf;
    Char * intCrBuf;
    Char * intCbBuf;
} JPEGENC_Env;

#ifdef __cplusplus
}
#endif // extern "C" 

#endif // CELLJPEGENC_


